package com.sumover.DAO;

import com.sumover.POJO.Game;
import com.sumover.POJO.GameEvaluation;
import com.sumover.POJO.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GameEvaluationMapper {
    int deleteByPrimaryKey(Integer aid);

    int insert(GameEvaluation record);

    GameEvaluation selectByPrimaryKey(Integer aid);

    List<GameEvaluation> selectAll();

    int updateByPrimaryKey(GameEvaluation record);

    List<GameEvaluation> selectByGame(@Param("game") Game game);

    GameEvaluation checkEvaluationExist(@Param("game") Game game, @Param("user") User loginUser);
}